home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: etek.chalmers.se!larss
- From: larss@etek.chalmers.se (Lars Svensson)
- Subject: String distance calculation
- Message-ID: <1996Mar26.182001.10622@etek.chalmers.se>
- Sender: news@etek.chalmers.se (USENET News System)
- Organization: Chalmers University of Technology, Gothenburg, Sweden
- Date: Tue, 26 Mar 96 18:20:01 GMT
-
- Hello
-
- I have a (small ?) problem constructing a dynamic algorithm that calculates
- the distance between two strings. Distance in this case is the number
- of operations needed to transform string A into string B. Available
- operations are:
-
- Advance cursor in string
- Delete char under cursor
- Replace char under cursor with another one
- Insert a new char
-
- All comments and ideas are most welcome............
-
- And YES, It is an assignment! :-)
-
- /Lars
-